// 1550. 存在连续三个奇数的数组

#include <vector>
using namespace std;

class Solution {
public:
    bool threeConsecutiveOdds(vector<int>& arr) 
    {
        int n = arr.size();
        for(int i = 0; i <= n - 3; i++)
        {
            if(arr[i] % 2 != 0
            && arr[i + 1] % 2 != 0
            && arr[i + 2] % 2 != 0)
                return true;
        }
        return false;
    }
};